/**
 * Copyright (C) 2015-2018 IQIYI
 * All rights reserved.
 *
 * Author     : 王海斌
 * E-mail     : wanghaibin@qiyi.com
 * Version    :
 * Date       : Thu 26 Mar 2020 12:18:21 PM CST
 * Destription: 测试改进加密效率
 */

#include <iostream>
 #include <string.h>

#include "qdata_confusion.h"

int main(int argc, char *argv[])
{
    std::string key("1234567890abcdefghijklmnopqrstuvwxyz");
    int dataLen = 4096;
    char * data = new char[dataLen];
    memset(data,'b', 4096);

    for(int i=0; i<1000000; ++i) {
        QDataConfusion confu;
        char * nData = confu.Encrypt(data, dataLen, key, i);
    }
    delete [] data;
    return 0;

}
